import request from '@/utils/request'

// 查询ai绘画列表
export function listAiPainting(query) {
  return request({
    url: '/AI/AiPainting/list',
    method: 'get',
    params: query
  })
}

// 查询ai绘画详细
export function getAiPainting(id) {
  return request({
    url: '/AI/AiPainting/' + id,
    method: 'get'
  })
}

// 新增ai绘画
export function addAiPainting(data) {
  return request({
    url: '/AI/AiPainting',
    method: 'post',
    data: data
  })
}

// 修改ai绘画
export function updateAiPainting(data) {
  return request({
    url: '/AI/AiPainting',
    method: 'put',
    data: data
  })
}

// 删除ai绘画
export function delAiPainting(id) {
  return request({
    url: '/AI/AiPainting/' + id,
    method: 'delete'
  })
}
